/**
 * 响应枚举
 */
export const responseEnum = {
    success: 200
}

/**
 * 操作类型枚举
 */
export const handleEnum = {
    add: 'add', // 新增
    edit: 'edit', // 编辑
    detail: 'detail', // 详情

    taskComplete: 'taskComplete', // 任务完成
    taskReject: 'taskReject' // 任务驳回
}

/**
 *任务步骤枚举
 * icon 图标
 * permi 操作权限编码
 */
export const taskStepEnum = {
    news: {label: '领料', value: '0', icon: '', permi: 'oms:omstask:picking'}, // 此条页面不展示，因此新建、领料共用
    ball: {label: '插球', value: '1', icon: 'el-icon-place', permi: 'oms:omstask:Inserttheball'},
    plating: {label: '电镀', value: '2', icon: 'el-icon-cpu', permi: 'oms:omstask:electroplate'},
    painting: {label: '彩绘', value: '3', icon: 'el-icon-brush', permi: 'oms:omstask:painting'},
    packing: {label: '包装', value: '4', icon: 'el-icon-files', permi: 'oms:omstask:packing'},
    complete: {label: '完成', value: '5', icon: '', permi: 'oms:omstask:complete'}
}

/**
 * 任务状态 (0进行中 1完成 2取消)
 */
export const taskStatus = {
    normal: {label: '进行中', value: '0'},
    complete: {label: '完成', value: '1'},
    cancel: {label: '取消', value: '2'}
}

/**
 * 任务类型枚举
 */
export const taskTypeEnum = {
    production: '1', // 订单成品生产
    half: '2', // 备货半成品生产
    halfPacking: '3' // 备货半成品包装
}

/**
 * 任务操作枚举 1完成任务；2驳回任务
 */
export const taskHandleEnum = {
    complete: '1',
    reject: '2',
    complement:'3'
}

/**
 *任务详情tab表格切换枚举
 */
export const taskDetailTableEnum = {
    all: {label: '全部商品', tableComp: 'all-goods', value: '0'},
    half: {label: '半成品任务', tableComp: 'half-task', value: '1'},
    achievement: {label: '工人业绩', tableComp: 'achievement', value: '2'},
    remark: {label: '备注', tableComp: 'remark', value: '3'}
}

/**
 * 是否允许负库存 (0允许 1不允许)
 */
export const negativeEnum = {
    allow: '0',
    notAllow: '1'
}
/**
 * 分类标识，是否生产所需(0否 1是)
 */
export const categoryNeedEnum = {
    no: '0',
    yes: '1'
}
/**
 * 出库入库枚举 0出库；1入库
 */
export const stockHandleEnum = {
    out: '0',
    in: '1'
}
/**
 * 是否置顶 (0否 1置顶)
 */
export const toppingEnum = {
    no: '0',
    yes: '1'
}

